package com.dongjiantong.sys.model;

import com.dongjiantong.mybatis.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 动物分类， 用户只能定义二级分类
 * @author cao
 * @create 2017-11-15 下午4:04
 **/
@Table(name="animal_type")
public class AnimalType extends BaseEntity {

    private Integer issys;

    @Column(name="animal_code")
    private Integer animalCode;

    @Column(name="animal_name")
    private String animalName;

    @Column(name="parent_id")
    private Integer parentId;

    private Integer level;


    //private Integer level;

    @Column(name="region_account_id")
    private Long regionAccountId;

    private Integer status;

    public Integer getIssys() {
        return issys;
    }

    public void setIssys(Integer issys) {
        this.issys = issys;
    }

    public Integer getAnimalCode() {
        return animalCode;
    }

    public void setAnimalCode(Integer animalCode) {
        this.animalCode = animalCode;
    }

    public String getAnimalName() {
        return animalName;
    }

    public void setAnimalName(String animalName) {
        this.animalName = animalName;
    }

//    public Integer getLevel() {
//        return level;
//    }
//
//    public void setLevel(Integer level) {
//        this.level = level;
//    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Long getRegionAccountId() {
        return regionAccountId;
    }

    public void setRegionAccountId(Long regionAccountId) {
        this.regionAccountId = regionAccountId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
}
